import { constantRoutes } from '@/router/index'
export default {
  namespaced: true,
  state: {
    list: []
  },

  mutations: {
    // 获取动态路由并与固定路由合并
    getRouter(state, val) {
      state.list = [...val, ...constantRoutes]
    }
  },
  actions: {
    updateValue({ commit }, payload) {
      commit('updateValue', payload)
    }
  }
}
